package com.chuangjiangx.member.manager.common;

import com.chuangjiangx.member.basic.ddd.domain.model.MbrSourceTerminal;
import lombok.Data;

/**
 * Created by chuangjiangzqq on 2018/8/13.
 * 当前用户登录信息
 */
@Data
public class ThreadLocalUser {

//    /**
//     * 商户APP存储信息
//     */
//    /**
//     * 商户UserId
//     */
//    private Long id;
//    /**
//     * 商户UserId
//     */
//    private Long merchantUserId;
//    private String token;
//    private String macCode;
//    private Date createTime;
//    private String version;
//    /**
//     * 原商户APP存储信息
//     */
//    private Long merchantId;
//    private Byte terminalType;
//    private String terminalNum;
//    /**
//     * 原商户WEB存储信息
//     */
//    private String merchantName;
//    private String storeName;
//    private Long storeUserId;
//    private Date tokenCreateTime;
//    private Byte type;
//    private Long storeId;
//    private String name;
//    private String flagId;
//    private String merchantPhone;
//    private String storeUserPhone;
//    private String cid;
//    private Byte deviceType;
//    private String state;
//    private String merchantLogoUrl;
//    private Long agentId;



    private Long merchantId;
    private String merchantName;
    private String merchantAddress;
    private Long merchantUserId;
    private Long storeId;
    private Long storeUserId;
    private String storeName;
    private String storeAddress;
    /**
     * 登录人名称
     */
    private String realName;
    /**
     * 0-商户  1-店长  2-店员
     */
    private Integer userType;


    /**
     * APP专用
     * 设备类型
     * @see MbrSourceTerminal
     */
    private Byte terminalType;
    /**
     * APP专用
     * 登录端设备编号
     */
    private String terminalNum;
}
